package com.ruoyi.project.business.monthschedule.service;

import com.ruoyi.project.business.domain.model.month.EmpDailySchedule;
import com.ruoyi.project.business.monthschedule.entity.MonthSchedule;
import com.ruoyi.project.business.monthschedule.request.AiAssignRequest;
import com.ruoyi.project.business.monthschedule.request.MonthScheduleSaveOrUpdateRequest;
import com.ruoyi.project.business.monthschedule.response.MonthScheduleResponse;

import java.util.Date;
import java.util.List;

/**
 * 月排班Service接口
 * 
 * @author ${author}
 * @date 2024-02-05
 */
public interface IMonthScheduleService {
    /**
     * 查询月排班
     * 
     * @param id 月排班ID
     * @return 月排班
     */
    public MonthSchedule selectMonthScheduleById(Long id);

    /**
     * 查询月排班列表
     * 
     * @param param 月排班
     * @return 月排班集合
     */
    public List<MonthSchedule> selectMonthScheduleList(MonthSchedule param, Long tenantId);

    List<MonthScheduleResponse> selectMonthScheduleListWithUser(Date yearMonth, Long operatorId, Long deptId, Long tenantId);

    Long saveOrUpdate(MonthScheduleSaveOrUpdateRequest request, Long operatorId, Long tenantId);

    /**
     * 新增月排班
     * 
     * @param monthSchedule 月排班
     * @return 结果
     */
    public Long insertMonthSchedule(MonthSchedule monthSchedule, Long operatorId, Long tenantId);

    /**
     * 修改月排班
     * 
     * @param monthSchedule 月排班
     * @return 结果
     */
    public int updateMonthSchedule(MonthSchedule monthSchedule, Long operatorId, Long tenantId);

    /**
     * 批量删除月排班
     * 
     * @param ids 需要删除的月排班ID
     * @return 结果
     */
    public int deleteMonthScheduleByIds(Long[] ids);

    /**
     * 删除月排班信息
     * 
     * @param id 月排班ID
     * @return 结果
     */
    public int deleteMonthScheduleById(Long id);

    List<EmpDailySchedule> aiAssign(AiAssignRequest request, Long operatorId, Long tenantId);

    void checkSchedule(Long userId, Integer year, Integer month, int dayOfMonth, Long tenantId);
}
